<%@ page import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="org.osee.administration.domain.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-type" content="text/html; charset=UTF-8" />
<title>Stock首页</title>
<link rel="stylesheet" href="admin/styles/inner.css" type="text/css" />
<!--[if IE]><script language="javascript" type="text/javascript" src="admin/script/jqplot/excanvas.min.js"></script><![endif]-->
<link rel="stylesheet" type="text/css"
	href="admin/script/jqplot/jquery.jqplot.css" />

<script language="javascript" type="text/javascript"
	src="admin/script/jqplot/jquery-1.3.2.min.js"></script>

<script language="javascript" type="text/javascript"
	src="admin/script/jqplot/beautify.min.js"></script>
<script language="javascript" type="text/javascript"
	src="admin/script/jqplot/prettify.min.js"></script>
<link rel="stylesheet" href="admin/script/jqplot/jspec.min.css"
	type="text/css" media="screen" title="no title" charset="utf-8" />
<link rel="stylesheet" href="admin/script/jqplot/prettify.min.css"
	type="text/css" />

<script language="javascript" type="text/javascript"
	src="admin/script/jqplot/jquery.jqplot.min.js"></script>

<script language="javascript" type="text/javascript"
	src="admin/script/jqplot/jqplot.dateAxisRenderer.min.js"></script>

<%
	Stock stock = (Stock)request.getAttribute("stock");
	String line = (String)request.getAttribute("line");
	System.out.println(line);
%>
<script language="javascript" type="text/javascript">
	// nice unique id function generator which I don't use anymore.
	var uID = ( function() {
		var id = 1;
		return function() {
			return id++
		};
	})();

	function run() {
		var o, n, nid;

		var elems = $(".prettyprint.plot");

		for ( var n = 0; n < elems.length; n++) {
			var code = $(elems[n]).text();
			eval(code);
		}

		prettyPrint();
	}
</script>
</head>

<body onload="run()">
<div id="inner-container">
	<div class="inner-block">
		<div class="bar-text">查询<font color="red"><%=stock.getName() %></font>最近被访问情况</div>
		<div class="inner-header">
			<div class="bar-c1"></div>
			<div class="bar-c2"></div>
		</div>
		<div class="inner-content" style="width:500px;">
			<div id="chart" style="width: 504px"></div>
			<pre class="prettyprint plot" style="display:none"> 
				line=[<%=line %>];
				plot9 = $.jqplot('chart', [line], {
			    title:'',
			    axes:{xaxis:{renderer:$.jqplot.DateAxisRenderer}},
			    series:[{lineWidth:4, markerOptions:{style:'square'}}]
				});
			</pre>
			<div style="font-size:11px; margin-left:10px; margin-bottom:10px; margin-top:10px">
				请输入您要查询的起始日期和结束日期<br />
				<font style="color:red; margin-left:20px">格式如：2009-05-01</font>
				<form action="" method="post">
<input type="hidden" value="<%=stock.getStockId() %>" name="id" />
				起始日期：<input type="text" name="date1" style="width:80px" /><font style="margin-left: 20px">结束日期：</font><input type="text" name="date2" style="width:80px" />
					<input type="submit" value="提交查询 " style="font-size:11px; margin-left:10px" />
				</form>
			</div>
		</div>
	</div>
</div>
</body>
</html>